@echo off

set BUILDDIR=build-mingw-%MODE%%ADDRESSMODEL%
if not exist %BUILDDIR% ( mkdir %BUILDDIR% )

if "%ACTION%" == "launch" exit/b


cd %BUILDDIR%

set PATH=C:\Qt\5.3\mingw482_32\bin;C:\Qt\Tools\mingw482_32\bin;"C:\Program Files (x86)\CMake\bin";%PATH%


rem cmake -G "MinGW Makefiles" ..

cmake  -G "MinGW Makefiles" ^
       -DCMAKE_BUILD_TYPE=%MODE% ^
       -DMY_AMODEL=%ADDRESSMODEL% ^
       -DUNIT_TEST_MODE=%UNITTESTMODE% ^
        %SOURCE_DIRECTORY%

cd..

exit/b

          

